/*     */ package com.qmsk.business.member.memberLog.dao;
/*     */ 
/*     */ import com.qmsk.business.sys.basic.SupportDAO;
/*     */ import com.utils.gson.in.GsonHeadOneRow;
/*     */ import com.utils.gson.out.GsonEbRst;
/*     */ import java.sql.SQLException;
/*     */ import java.util.Date;
/*     */ import java.util.Map;
/*     */ 
/*     */ public class MemberLogDAO extends SupportDAO
/*     */ {
/*     */   public int insertMemberLog1(Long memberId, String sJson)
/*     */     throws SQLException
/*     */   {
/*  27 */     GsonHeadOneRow g = GsonHeadOneRow.jsonStrToObject(sJson);
/*     */ 
/*  29 */     if (g == null) {
/*  30 */       return 1;
/*     */     }
/*  32 */     String[] head = { "memberId", "createFileTime" };
/*  33 */     Object[] data = { memberId, new Date() };
/*  34 */     g.addHeadData(head, data);
/*  35 */     return insertGsonHeadOneRow(g);
/*     */   }
/*     */ 
/*     */   public int insertMemberLog2(Long memberId, String sJson, GsonHeadOneRow r)
/*     */     throws SQLException
/*     */   {
/*  41 */     GsonHeadOneRow g = GsonHeadOneRow.jsonStrToObject(sJson);
/*     */ 
/*  43 */     if (g == null) {
/*  44 */       return 1;
/*     */     }
/*  46 */     String[] head = { "createFileTime" };
/*  47 */     Object[] data = { new Date() };
/*  48 */     g.addHeadData(head, data);
/*  49 */     g.addHeadData(r.getHead(), r.getData());
/*  50 */     return insertGsonHeadOneRow(g);
/*     */   }
/*     */ 
/*     */   public Integer deleteOfMemberId(Object[] objects) throws SQLException
/*     */   {
/*  55 */     String[] head = { "memberId" };
/*  56 */     return Integer.valueOf(deleteHeadData(head, objects));
/*     */   }
/*     */ 
/*     */   public GsonEbRst getListOfAllOpt(Map<String, ?> params, Integer nPageIdx, Short nPageSize) throws SQLException
/*     */   {
/*  61 */     return getGsonOfParams("selectSqlOfOpt", 
/*  62 */       "selectCountSqlOfOpt", "selectJsonOfAll", params, nPageIdx, 
/*  63 */       nPageSize);
/*     */   }
/*     */ 
/*     */   public void insertMemberLog_deposit(int nAct, String sMaxBillNo, Object amount, Object memberId, Long userId, String userName)
/*     */     throws SQLException
/*     */   {
/*  69 */     Object[] params = { userId, userName, sMaxBillNo, Integer.valueOf(0), Integer.valueOf(0), Integer.valueOf(0), 
/*  70 */       Integer.valueOf(0), Integer.valueOf(0), Integer.valueOf(nAct), Integer.valueOf(10), amount, memberId };
/*  71 */     update("insertMemberLog", params);
/*     */   }
/*     */ 
/*     */   public void insertBusBillMbLog_deposit(int nActID, String sMaxBillNo, Object amount, Object memberId, Long userId, String userName)
/*     */     throws SQLException
/*     */   {
/*  86 */     Object[] params = { userId, userName, sMaxBillNo, Integer.valueOf(0), Integer.valueOf(0), Integer.valueOf(0), 
/*  87 */       Integer.valueOf(0), Integer.valueOf(0), Integer.valueOf(nActID), Integer.valueOf(14), amount, memberId };
/*  88 */     update("insertMemberLog", params);
/*     */   }
/*     */ 
/*     */   public void insertBusBillMbLog_IntAmt(int nActID, String billNo, Object IntAmt, Object memberId, Long userId, String userName)
/*     */     throws SQLException
/*     */   {
/* 103 */     Object[] params = { userId, userName, billNo, Integer.valueOf(0), Integer.valueOf(0), Integer.valueOf(0), 
/* 104 */       IntAmt, Integer.valueOf(0), Integer.valueOf(nActID), Integer.valueOf(14), Integer.valueOf(0), memberId };
/* 105 */     update("insertMemberLog", params);
/*     */   }
/*     */ 
/*     */   public void insertBusBillMbLog_CashCoup(int nActID, String billNo, Double payCahCouPon, Object memberId, Long userId, String userName)
/*     */     throws SQLException
/*     */   {
/* 111 */     Object[] params = { userId, userName, billNo, Integer.valueOf(0), Integer.valueOf(0), 
/* 112 */       payCahCouPon, Integer.valueOf(0), Integer.valueOf(0), Integer.valueOf(nActID), Integer.valueOf(14), Integer.valueOf(0), memberId };
/* 113 */     update("insertMemberLogCashCoup", params);
/*     */   }
/*     */ 
/*     */   public void insertMemberLogCs(int cHECK, String billNo, Double dIntAmt, Double dDeposit, Double dCach, Double dActual, Long memberId, Long userId, String userName)
/*     */     throws SQLException
/*     */   {
/* 132 */     Object[] params = { userId, userName, billNo, Integer.valueOf(0), dCach, Integer.valueOf(0), 
/* 133 */       dIntAmt, dActual, Integer.valueOf(cHECK), Integer.valueOf(13), dDeposit, memberId };
/* 134 */     update("insertMemberLog", params);
/*     */   }
/*     */ 
/*     */   public void insertMemberLogBuss(int cHECK, String billNo, Double dIntAmt, Double dDeposit, Double dCach, Double dActual, Long memberId, Long userId, String userName)
/*     */     throws SQLException
/*     */   {
/* 141 */     Object[] params = { userId, userName, billNo, Integer.valueOf(0), dCach, Integer.valueOf(0), 
/* 142 */       dIntAmt, dActual, Integer.valueOf(cHECK), Integer.valueOf(14), dDeposit, memberId };
/* 143 */     update("insertMemberLog", params);
/*     */   }
/*     */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.member.memberLog.dao.MemberLogDAO
 * JD-Core Version:    0.5.3
 */